//
//  RecListenCityTableViewCell.m
//  TravelEveryDay
//
//  Created by dlios on 15-10-24.
//  Copyright (c) 2015年 com.lanou3g. All rights reserved.
//

#import "RecListenCityTableViewCell.h"

@implementation RecListenCityTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(20 * WIDTH, 20 * HEIGHT, SCREEN_WIDTH - 40 * WIDTH, 200 * HEIGHT)];
        _nameLabel.backgroundColor = [UIColor colorWithRed:62/255 green:176/255. blue:193/255. alpha:1];
        _nameLabel.font = [UIFont boldSystemFontOfSize:26];
        _nameLabel.layer.masksToBounds = YES;
        _nameLabel.layer.cornerRadius = 10;
        _nameLabel.textColor = [UIColor whiteColor];
        _nameLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_nameLabel];
        
        self.contentView.backgroundColor = [UIColor colorWithRed:251/255. green:246/255. blue:233/255. alpha:1];
    }
    return self;
}
-(void)getData:(RecCityModel *)model
{
    _nameLabel.text = model.cityName;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
